<?php

class LibYeti {
    private $namedClass;
    
    public function __construct() {
        if(!preg_match('/(.*)LibYeti/i', get_class($this), $_namedClass)) {
            throw new LibYetiException('This library not is valid');
            return NULL;
        }
        
        $this->namedClass = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '.\\1', $_namedClass[1]));
        $type = substr($this->namedClass, 0, stripos($this->namedClass, '.'));
        
        //echo $type . '<br />';
    }
}
